package UMC.Web.UI;

import UMC.Web.UICell;
import UMC.Web.UIEventText;
import UMC.Web.WebMeta;

public class UIButton extends UICell {
    public UIButton() {
        this.data = new WebMeta();

    }

    public UIButton(WebMeta data) {
        this.data = data;
    }

    public void title(String title) {
        this.format("title", title);
    }

    public void button(UIEventText... btns) {
        data.put("buttons", btns);
    }

    WebMeta data;

    @Override
     public WebMeta data() {
        return data;
    }

    @Override
    public String type() {
        return "UIButton";
    }
}
